package Test;


import java.util.Comparator;

public class Test {
    public static void main(String[] args) {
        int[] elem={9,6,4,5,4,3,2};

        Heap heap=new Heap(elem);
        heap.initElem(elem);
        heap.creatHeap();
        heap.HeapSort();
        System.out.println("======");



    }
    public static void main1(String[] args) {
        int[] elem={4,9,10,5,6,3,2};
        Heap heap=new Heap(elem);
        heap.initElem(elem);
        heap.creatHeap();
        System.out.println(heap.poll());
        System.out.println(heap.poll());
        System.out.println(heap.poll());

    }

}
